#include "ContextImpl.h"

namespace steam
{
	namespace firebox
	{
		ContextImpl::ContextImpl() : m_world(new World())
		{

		}

		ContextImpl::~ContextImpl()
		{
			delete m_world;
		}

		World& ContextImpl::getWorld() const
		{
			return *m_world;
		}

		IContext& getContext()
		{
			static IContext* const context = new ContextImpl();
			return *context;
		}
	}
}